package com.egao.gzh.entity.reply;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.util.Map;

/**
 * @author Damon
 * @create 2020-08-26 16:27
 */
@XStreamAlias("xml")
public class MusicMessage extends BaseMessage {

    public MusicMessage(Map<String, String> requestMap, Music music) {
        super(requestMap);
        //设置文本消息的msgType为text
        this.setMsgType("music");
        this.music = music;
    }

    @XStreamAlias("Music")
    private Music music;


    @Override
    public String toString() {
        return "TextMessage{" +
                "music='" + music + '\'' +
                ", toUserName='" + getToUserName() + '\'' +
                ", fromUserName='" + getFromUserName() + '\'' +
                ", createTime='" + getCreateTime() + '\'' +
                ", msgType='" + getMsgType() + '\'' +
                "} ";
    }
}
